<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Delete_truck
 *
 * @author peerawatj20
 */
class delete_truck extends MY_Controller{
     public function __construct() {
        parent::__construct();
        $this->load->model('truck_model');
    }

    public function index() {
        $id = $this->input->get('id');
        $this->truck_model->delete_truck($id);
        redirect('truck/home');
    }
}
